package com.qj.yantaishan.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.beans.factory.annotation.Autowired;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
import com.qj.yantaishan.mapper.StorePopupWindowMapper;
import com.qj.yantaishan.domain.StorePopupWindow;
import com.qj.yantaishan.service.IStorePopupWindowService;
import com.qj.yantaishan.common.core.text.Convert;

/**
 * 店铺弹窗海报Service业务层处理
 * 
 * @author qihe
 * @date 2022-07-22
 */
@Service
@Primary
public class StorePopupWindowServiceImpl    extends ServiceImpl<StorePopupWindowMapper, StorePopupWindow>  implements IStorePopupWindowService
{
    @Autowired
    private StorePopupWindowMapper storePopupWindowMapper;

    /**
     * 查询店铺弹窗海报
     * 
     * @param id 店铺弹窗海报主键
     * @return 店铺弹窗海报
     */
    @Override
    public StorePopupWindow selectStorePopupWindowById(Long id)
    {
        return storePopupWindowMapper.selectStorePopupWindowById(id);
    }

    /**
     * 查询店铺弹窗海报列表
     * 
     * @param storePopupWindow 店铺弹窗海报
     * @return 店铺弹窗海报
     */
    @Override
    public List<StorePopupWindow> selectStorePopupWindowList(StorePopupWindow storePopupWindow)
    {
        return storePopupWindowMapper.selectStorePopupWindowList(storePopupWindow);
    }

    /**
     * 新增店铺弹窗海报
     * 
     * @param storePopupWindow 店铺弹窗海报
     * @return 结果
     */
    @Override
    public int insertStorePopupWindow(StorePopupWindow storePopupWindow)
    {
        return storePopupWindowMapper.insertStorePopupWindow(storePopupWindow);
    }

    /**
     * 修改店铺弹窗海报
     * 
     * @param storePopupWindow 店铺弹窗海报
     * @return 结果
     */
    @Override
    public int updateStorePopupWindow(StorePopupWindow storePopupWindow)
    {
        return storePopupWindowMapper.updateStorePopupWindow(storePopupWindow);
    }

    /**
     * 批量删除店铺弹窗海报
     * 
     * @param ids 需要删除的店铺弹窗海报主键
     * @return 结果
     */
    @Override
    public int deleteStorePopupWindowByIds(String ids)
    {
        return storePopupWindowMapper.deleteStorePopupWindowByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除店铺弹窗海报信息
     * 
     * @param id 店铺弹窗海报主键
     * @return 结果
     */
    @Override
    public int deleteStorePopupWindowById(Long id)
    {
        return storePopupWindowMapper.deleteStorePopupWindowById(id);
    }
}
